#!/bin/sh -e

# Pipe this script into mplayer with the following switches
# mplayer -quiet -osdlevel 1 -slave ${MOVIE}
#
# example usage:
# ./osd.sh | mplayer -quiet -osdlevel 1 -slave some_movie.avi

DATA="datalog"

echo osd 1

while :
do
	echo osd_show_text \"`tail -n 1 ${DATA}`\" 1000 1
	sleep 1
done
